# Contributor: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
# Maintainer: Iztok Fister, Jr. <iztok@iztok-jr-fister.eu>
pkgname=py3-nltk
_pkgorig=nltk
pkgver=3.7
pkgrel=0
pkgdesc="Natural Language Toolkit"
url="https://github.com/nltk/nltk"
arch="noarch"
license="Apache-2.0"
depends="python3 py3-yaml py3-click py3-regex"
makedepends="py3-setuptools"
checkdepends="py3-nose py3-requests"
source="$pkgname-$pkgver.tar.gz::https://github.com/nltk/nltk/archive/$pkgver.tar.gz"
builddir="$srcdir/$_pkgorig-$pkgver"
options="!check" #skip for now; it requires nltk-data, etc.

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	rm -r "$pkgdir"/usr/lib/python3.*/site-packages/nltk/test
}

sha512sums="
66d79afa59f18f2bf7d086dcb22813c7b92239c05669daa62866dbda06c0ca22367317749cf19db3e41a7bdb405d4f87f72b695aa58fd0669bf36de64f1f9888  py3-nltk-3.7.tar.gz
"
